<%@taglib uri="/struts-tags" prefix="s"%>
<jcpsm:pageContainer>
<div class="content">


<h1 class="title">Update <span>User Details</span></h1>
<div id="registrationDiv" style="width:330px; margin-top: 10px">
<s:form action="updateUser">
	<s:actionerror/>
	
	<input name="id" type="hidden" value="${sessionScope.editUserInfo.id}"/>
	<input name="status" type="hidden" value="${sessionScope.editUserInfo.status}"/>
	
	<table class="track_table">
		<tr>
			<td>Name*</td>
			
			<td><s:textfield name="name" cssClass="syle_input mrgbtm5 width_200" value="%{#session.editUserInfo.name}" theme="simple"/></td>
		</tr>
		<tr>
			<td>Email*</td>
			<td><s:textfield name="emailId" cssClass="syle_input mrgbtm5 width_200" value="%{#session.editUserInfo.emailId}" theme="simple"/></td>
		</tr>
		
		<input name="password" type="hidden" value="${sessionScope.editUserInfo.password}"/>
		<input name="confPassword" type="hidden" value="${sessionScope.editUserInfo.confPassword}"/>
	
		<tr>
			<td>Oracle ID*</td>
			<td><s:textfield name="oracleId" cssClass="syle_input mrgbtm5 width_200" value="%{#session.editUserInfo.oracleId}" theme="simple"/></td>
		</tr>	
		
		
		<tr>
			<td>Phone number*</td>
			<td><s:textfield name="phoneNumber" cssClass="syle_input mrgbtm5 width_200" value="%{#session.editUserInfo.phoneNumber}" theme="simple"/></td>
		</tr>
		<tr>
			<td>Gender</td>
			<td>
			<s:radio name="gender" list="{'Male','Female'}" cssClass="syle_input mrgbtm5 width_60" theme="simple" value="%{#session.editUserInfo.gender}"/>
			</td>
		</tr>
		<tr>
			<td>Location</td>
			<td>
			<s:select name="location" list="{'OffShore','Onsite'}" headerKey=""
		 cssClass="syle_input mrgbtm5 width_222" value="%{#session.editUserInfo.location}" theme="simple"/>
		 </td>
		</tr>
		<tr>
			<td>Designation</td>
			<td>
	<s:select name="designation" list="{'Associate', 'Sr.Associate', 'Manager', 'Sr.Manager', 'Director'}" headerKey=""
		 cssClass="syle_input mrgbtm5 width_222" theme="simple" value="%{#session.editUserInfo.designation}"/>
	</td>
		</tr>
		<tr>
			<td>Buddy</td>
			<td><s:textfield name="buddyName" cssClass="syle_input mrgbtm5 width_200" theme="simple" value="%{#session.editUserInfo.buddyName}"/>
			</td>
		</tr>
		<tr>
			<td>Primary Track</td>
			<td>
				<select id="track_selector" name="primaryTrack" class="syle_input width_200">
					<c:forEach var="track" items="${sessionScope.track}">
						<c:if test="${sessionScope.editUserInfo.primaryTrack eq track.value.trackId}">
							<c:if test="${track.value.deleteFlag eq false}">
							<option value="${track.value.trackId}" selected="selected">${track.value.name}</option>
							</c:if>
						</c:if>
						<c:if test="${sessionScope.editUserInfo.primaryTrack ne track.value.trackId}">
						<c:if test="${track.value.deleteFlag eq false}">
						<option value="${track.value.trackId}">${track.value.name}</option>
						</c:if>
						</c:if>
					</c:forEach>
			</select></td>
		</tr>
		<tr>
			<td>Contact Info</td>
			<td>
				<s:textarea name="contactInfo" cssClass="syle_input mrgbtm5 width_200"  theme="simple" value="%{#session.editUserInfo.contactInfo}"/>
			</td>
		</tr>
		<tr>
			<td>CompOff Count</td>
			<td>
				<s:textfield name="compOffCount" cssClass="syle_input mrgbtm5 width_200"  theme="simple" value="%{#session.editUserInfo.compOffCount}"/>
			</td>
		</tr>
		<tr>
			<td>Shift Count</td>
			<td>
				<s:textfield name="shiftCount" cssClass="syle_input mrgbtm5 width_200"  theme="simple" value="%{#session.editUserInfo.shiftCount}"/>
			</td>
		</tr>
		<tr>
			<td colspan="2"><s:submit cssClass="stylebutton fltrgt mrgrgt20" value="Update" theme="simple"/></td>
		</tr>
	</table>
	
</s:form>
</div>
</div>
</jcpsm:pageContainer>